<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        console.log(1);
        setTimeout(async () => {
            await console.log(2);
            Promise.resolve().then(data => {
                console.log(3);
            });
        });
        new Promise((resolve) => {
            resolve()
            console.log(4)
        }).then(async () => {
            console.log(5);
            await console.log(9);
            setTimeout(() => {
                console.log(6);
            });
        }).then(() => console.log(7))
        console.log(8);
    </script>

    <script>
        console.log(10);
        Promise.resolve().then(() => console.log(11))
    </script>
</body>

</html>